﻿using EPE.DALFactory;
using EPE.IDAL;
using EPE.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace EPE.BLL
{
    public class ShopsProject
    {
        private readonly IShopsProject dal = DataAccessFactory.CreateShopsProject();

        public DataSet GetListByPage(string strProjectName, string companyid, string orderby, int pageIndex, int dataCount)
        {
            return dal.GetListByPage(strProjectName,companyid, orderby, pageIndex, dataCount);
        }

        public void Insert(CShopsProject model) 
        {
             dal.Insert(model);
        }
        public void Update(CShopsProject model) 
        {
            dal.Update(model);
        }

        public DataSet GetListByUpdate(string strId)
        {
            return dal.GetListByUpdate(strId);
        }

        public DataSet GetAllList(string companyid)
        {
            return dal.GetAllList(companyid);
        }
    }
}
